package com.zxw.commandline.runner;

import org.springframework.boot.CommandLineRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * 服务启动执行
 * @Order注解（或者实现Order接口）来规定所有CommandLineRunner实例的运行顺序。
 * @author 张晓伟
 * @DATE 2018/1/9 23:22
 */

@Component
@Order(value=1)
public class MyStartupRunner1 implements CommandLineRunner {

    @Override
    public void run(String... args) throws Exception {
        System.out.println(">>>>>>>>>>>>>>>服务启动执行，执行加载数据等操作111111111<<<<<<<<<<<<<");
    }

}
